<template>
	<view class="con">
		<view class="box">
			<image class="img" src="/static/64.png" mode=""></image>
			<view class="text">恭喜您，预定成功</view>
			<view class="btn" @click="to_index">返回首页</view>
			<view class="btn" @click="to_order">查看订单</view>
		</view>
	</view>
</template>

<script setup>
	const to_index = () => {
		uni.switchTab({
			url: '/pages/index/index'
		})
	}
	const to_order = () => {
		uni.redirectTo({
			url: '/pages_A/order/order?type=10'
		})
	}
</script>

<style lang="less" scoped>
	.con {
		padding: 30rpx;
	}
	.box {
		height: 90vh;
		background: #ffffff;
		border-radius: 24rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}
	.img {
		margin-top: -30vh;
		width: 251rpx;
		height: 203rpx;
		margin-bottom: 30rpx;
	}
	.text {
		font-size: 28rpx;
		font-weight: 500;
		color: #000000;
		margin-bottom: 80rpx;
	}
	.btn {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 220rpx;
		height: 72rpx;
		background: #ffffff;
		border: 1rpx solid #2468fb;
		border-radius: 37rpx;
		font-size: 28rpx;
		font-weight: 500;
		color: #2468fb;
		margin-bottom: 20rpx;
	}

	//
</style>
